package com.adjy.pathbuilders.world;

/**
 *	LevelCategory holds the possible Categories of a Level
 */
public enum LevelCategory {
	EASY("easy"), MEDIUM("medium"), HARD("hard"); // We can add more categories later on
	
	private String name;
	
	LevelCategory(String name) {
		this.name = name;
	}
	
	public String toString() {
		return this.name;
	}
	
	public static LevelCategory getCategoryFor(String name) {
		LevelCategory[] values = LevelCategory.values();
		for (int i = 0 ; i < values.length ; i++) {
			if (values[i].toString().equals(name))
				return values[i];
		}
		return null;
	}
	
	
}
